/*---------------------------------------------------------------------------*/ 
/** 
  @file		socket.h 
  @brief	Example socket API define file 
 
  This file contains higher level socket utility functions. 
 
 
  History: 
  Date		Author			Comment 
  11-02-2009	Vincent Young.		Create it. 
 
  @author Vincent Young.(vincentgodyoung@163.com) 
 */ 
/*---------------------------------------------------------------------------*/ 

#define LISTENBUFLEN 4

int TCPServerInit(int socketid, int *serverfd);
int TCPServerWaitConnection(int serverfd, int *clientpointer, char *addr);
int TCPBlockRead(int clientfd, char *buf, int length);
int TCPWrite(int clientfd, char *buf, int len);
int TCPClientInit(char * serverip, int socketid, int *serverfd);

